package com.stgy.lease.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.stgy.lease.model.base.BaseDomain;
import java.io.Serializable;

import com.stgy.lease.model.enums.FacilityInfoTypeEnum;
import lombok.Data;

/**
 * @TableName facility_info
 */
@TableName(value ="facility_info")
@Data
public class FacilityInfo extends BaseDomain implements Serializable {
//    private Integer type;
    //使用枚举对象接收前端新增的数据
    //mybatis不能直接将数据库查询到的简单数据转为一个枚举对象，mp提供了注解标注到枚举类的指定属性上
    //可以让该属性接收 查询到的值 sql从数据库查询到的type=1，mybatis需要将1设置给枚举对象
    private FacilityInfoTypeEnum type;

    private String name;

    private String icon;

    private static final long serialVersionUID = 1L;
}